Skip to content

fix(db): respect schema_paths order in diff#5706

Merged
jgoux merged 3 commits into
supabase:developfrom
pjpjq:codex/respect-schema-paths-order
Jul 3, 2026
Merged

fix(db): respect schema_paths order in diff#5706
jgoux merged 3 commits into
supabase:developfrom
pjpjq:codex/respect-schema-paths-order

Conversation

@pjpjq

@pjpjq pjpjq commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Preserve explicit [db.migrations].schema_paths order when preparing declared schemas for db diff.
  • Expand directory schema path entries deterministically without overriding explicit file/glob order.
  • Use pg-delta declarative apply only when schema_paths is unset or points directly at the declarative directory.

Fixes #3854

Testing

  • go test ./internal/db/diff ./internal/db/declarative ./cmd

@pjpjq pjpjq requested a review from a team as a code owner June 26, 2026 04:23

@jgoux jgoux left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! 🙏

@jgoux jgoux added this pull request to the merge queue Jul 3, 2026
Merged via the queue into supabase:develop with commit 9bb97be Jul 3, 2026
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

db diff -f <name> ignores schema_paths order from config.toml

2 participants